#ifndef PictureDB_H
#define PictureDB_H

#include <QObject>
#include <QDir>
#include <QFile>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <QThread>

class PictureDB : public QThread
{
    Q_OBJECT
public:
    explicit PictureDB();

public:
    QStringList *getPath();
    void searchFile(const QString &strPath);
    void remove(const QString &name);

protected:
    void run();

private:
    bool search(const QString &rootPath);
    void insert();

private:
    QFileInfoList Path;
    QString m_strPath;
};

#endif // PictureDB_H
